<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
		<link rel="stylesheet" href="../css/iconfont.css">
		<style>
			.mui-content-padded{margin:5px 0 0 0;}
			.mui-row-list span{float: left; line-height:33px; width:20%;}
			.mui-row-list select{float: left; line-height:14px; font-size:14px; margin-top:2px; margin-left: 5px;}
			.mui-btn-block{margin-bottom:0; padding:6px;}
			.mui-col-sm-12{ border-top: 1px solid #D1D1D1; width:100%; padding-top:5px; font-size:14px;}
			input[type="text"],input[type="number"]{height:26px; padding: 0;border-width:0;margin-bottom:0;background:none;}
			form:before{ background: none !important; border: none !important;}
			input{border-width:0; text-align: right; font-size:14px; line-height: 26px;}
			.mui-switch{
				border-color: #007AFF;
				background-color: #007AFF;
				border-width: 1px;
			}
			#mySwitch3:before{content: '否'; right: 15px;}
			#mySwitch3.mui-active:before{content: '是'; left: 15px;}
			.mui-switch:before {content: '无症状'; color: #fff; right: 5px;}
			.mui-switch.mui-active:before {content: '有'; color: #fff; left: 15px;}
			.mui-switch.mui-active {
				border-color: #fd933b;
				background-color: #fd933b;
			}
			.mui-ul-check{ width: 100%; margin: 0; padding: 0;}
			.mui-ul-check li{float: left; list-style-type:none; text-align: center; padding:5px; margin:2px; border:1px solid #D1D1D1;}
			.mui-ul-check li.on{ background-color:#007AFF; color:#FFFFFF; float: left; list-style-type:none; text-align: center; padding:5px; margin:2px;}	
			.border0{border-width: 0; border-bottom: #dddddd 1px solid;}
			.submit{
				margin:0 auto 10px auto; 
				width:200px; 
				height:35px; 
				line-height: 35px; 
				background-color:#007AFF; 
				text-align: center; 
				color: #FFFFFF; 
				border-radius: 10px;
				margin-top: 10px;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">基本信息</h1>
		</header>
		<div class="mui-conten" style="margin-top:50px;">
			<ul class="mui-table-view">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<a id='demo1' data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 16px; line-height: 26px;">随访日期</div>
								<input id='result0' class="ui-alert" placeholder="请选择" style="width:50%; float:right; margin-right:15px;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a id='demo1' data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 16px; line-height: 26px;">随访类型</div>
								<input id='result1' class="ui-alert" placeholder="请选择" style="width:50%; float:right; margin-right:15px;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a id='demo2' data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 16px; line-height: 26px;">随访方式</div>
								<input id='result2' class="ui-alert" placeholder="请选择" style="width:50%; float:right; margin-right:15px;"/>
							</a>
						</li>
					</div>
				</div>
			</ul>
			<div style="margin-left:0.9rem; line-height:35px;">用药</div>
			<ul class="mui-table-view">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 16px; line-height: 26px;">化疗方案</div>
							<input id='chemotherapy' class="ui-alert bottom_soild" placeholder="请输入" style="width:50%; float:right; margin-right:15px;"/>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 16px; width: 90px; line-height: 26px;">用法</div>
								<input id='result3' class="ui-alert" placeholder="请选择" style="width:50%; float:right; margin-right:15px;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 16px; width: 90px; line-height: 26px;">用药剂型</div>
								<input id='result4' class="ui-alert" placeholder="请选择" style="width:50%; float:right; margin-right:15px;"/>
							</a>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 16px; line-height: 26px;">漏服药次数</div>
							<input id='forgetmed' type="number" class="ui-alert bottom_soild" placeholder="请输入" style="width:50%; float:right; margin-right:15px;"/>
						</li>
					</div>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 16px; width: 90px; line-height: 26px;">督导人员选择</div>
								<input id='result5' class="ui-alert" placeholder="请选择" style="width:50%; float:right; margin-right:15px;"/>
							</a>
						</li>
					</div>
				</div>
			</ul>
			<div style="margin-left:0.9rem; line-height:35px;">症状</div>
			<ul class="mui-table-view">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 16px;">是否有症状</div>
							<div class="mui-switch" id="mySwitch">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow">
								<ul class="mui-ul-check" id="ularry">
									<li value="1" id="1">咳嗽咳痰</li>
									<li value="2" id="2">低热盗汗</li>
									<li value="3" id="3">咯血或血痰</li>
									<li value="4" id="4">胸痛消瘦</li>
									<li value="5" id="5">恶心纳差</li>
									<li value="6" id="6">关节疼痛</li>
									<li value="7" id="7">头痛失眠</li>
									<li value="8" id="8">视物模糊</li>
									<li value="9" id="9">皮肤瘙痒、皮疹</li>
									<li value="10" id="10">耳鸣、听力下降</li>
									<li value="482" id="symptomQt-on">其它</li>
								</ul>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="symptomQt-op">
							<input id='symptomQt' class="ui-alert bottom_soild"  placeholder="请输入其它症状描述" style="width:50%; float:right; margin-right:15px;"/>
						</li>
					</div>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<li class="mui-table-view-cell">
						<div style="float:left; width:100%; margin-top:6px;">
							<div style="float:left; font-size: 16px; line-height: 26px;">下次随访日期</div>
							<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="padding-right: 20px; float: right;">
								<input  id='result6' class="ui-alert"  placeholder="请选择" style="width:80px; float: right; color:#000; line-height: 26px;"/>
							</a>
						</div>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size:16px;">随访医生签名</div>
							<div class="mui-switch" id="mySwitch3">
							  <div class="mui-switch-handle"></div>
							</div>
						</li>
						<li class="mui-table-view-cell" id="tigshow_doc_1">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<input  id='result7' class="ui-alert"  placeholder="请选择" style="width:50%; text-align: right; float: right; padding-right: 15px;"/>
							</a>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="tigshow_doc_2">
							<div style="float: left; width:100%;">
								<div style="float: left; font-size: 16px; width:5rem; text-align:center;">医院</div>
								<input id="text-doc" class="ui-alert bottom_soild"  placeholder="请输入" style="width:60%; margin-left: 6px;"/>
							</div>
							<div style="float: left; width:100%;">
								<div style="float: left; font-size: 16px; width:5rem; text-align:center;">医生</div>
								<input id="text-hosp" class="ui-alert bottom_soild"  placeholder="请输入" style="width:60%; margin-left: 6px;"/>
							</div>
						</li>
					</div>
				</div>
			</ul>
			<div onclick="submit()" class="submit" >保存</div>
		</div>
		<script src="../js/mui.js"></script>
		<script src="../js/mui.picker.min.js"></script>
		<script src="../js/jquery.min-1.11.1.js"></script>
		<script src="../js/request.js"></script>
		<script type="text/javascript">
			//获取变量
			var self1 = localStorage.getItem("name")
			console.log(self1)
			var dataold = JSON.parse(self1)
			var obj = dataold.obj
			var selfdata ="";
			var listdata ="";
			var first = "";
			var second = "";
			mui.plusReady(function(){
				var self = plus.webview.currentWebview();
					listdata = self.data;
					selfdata = JSON.parse(listdata);
				var date1 = new Date();
				var year1=date1.getFullYear(); 
				var month1=date1.getMonth()+1;
				var day1=date1.getDate();
				var h1=date1.getHours();
				var m1=date1.getMinutes();
				var s1=date1.getSeconds();
					month1 =(month1<10 ? "0"+month1:month1); 
					day1 =(day1<10 ? "0"+day1:day1); 
					h1 =(h1<10 ? "0"+h1:h1); 
					m1 =(m1<10 ? "0"+m1:m1); 
					s1 =(s1<10 ? "0"+s1:s1);
					createDate = (year1.toString()+'-'+month1.toString()+'-'+day1.toString()+' '+h1.toString()+':'+m1.toString()+':'+s1.toString());
					modifyDate = (year1.toString()+'-'+month1.toString()+'-'+day1.toString()+' '+h1.toString()+':'+m1.toString()+':'+s1.toString());
					ehrId = selfdata.ehrId;
					document.getElementById("result7").value = obj.hospName+obj.userName;//前台显示
					tbId = self.arcid;
				if(self.first != ""){
					first = JSON.parse(self.first);
					second = JSON.parse(self.second);
					console.log(JSON.stringify(second))
					id = first.visitId;
					tbId = first.tbId;
					console.log(first.tbId)
					visitId = first.visitId;
					createUser = first.createUser;
					createDate = first.createDate;
					//随访日期
					var datev = new Date(first.visitDate);
					var yearv=datev.getFullYear(); 
					var monthv=datev.getMonth()+1;
					var dayv=datev.getDate();
						monthv =(monthv<10 ? "0"+monthv:monthv); 
						dayv =(dayv<10 ? "0"+dayv:dayv); 
					visitDate = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
					document.getElementById("result0").value = visitDate;
					var rowsvisitType=resultall.r1;
					document.getElementById("result1").value = rowsvisitType[first.visitType];
					var rowsvisitWay=resultall.r2;
					document.getElementById("result2").value = rowsvisitWay[first.visitWay];
					document.getElementById("chemotherapy").value = first.chemotherapy;
					var rowsmedFreq=resultall.r3;
					document.getElementById("result3").value = rowsmedFreq[first.medFreq];
					var rowsmedForm=resultall.r4;
					document.getElementById("result4").value = rowsmedForm[first.medForm];
					var rowssupervisor=resultall.r5;
					document.getElementById("result5").value = rowssupervisor[first.supervisor];
					//症状多选赋值
					var symptomarr = first.symptom;
					console.log(symptomarr)
					if(symptomarr != null){
						var symptomarr_n = symptomarr.split(",");
						if(symptomarr_n.length != 0){
							$("#ularry").each (function (){
								$(this).find ('li').each (function (){
									var y = symptomarr_n.length-1;
									for(var i=0; i<symptomarr_n.length; i++) {
										if($(this).val() == symptomarr_n[i]) {
					                        $(this).addClass("on")
											if(symptomarr_n[y] == "482"){
												document.getElementById("symptomQt-op").style.display="block";
												document.getElementById("symptomQt").value = first.symptomQt;
											}else{
												document.getElementById("symptomQt-op").style.display="none";
											}
					                    }
									}
								})
							})	
						}
					}
					if(first.symptom != "0"){
						document.getElementById("tigshow").style.display="block";
						document.getElementById("mySwitch").classList.add('mui-active');
					}else{
						document.getElementById("tigshow").style.display="none";
						document.getElementById("mySwitch").classList.remove('mui-active');
					}
					//症状多选赋值结束
					//下次随访日期
					var daten = new Date(first.nextDate);
					var yearn=daten.getFullYear(); 
					var monthn=daten.getMonth()+1;
					var dayn=daten.getDate();
						monthn =(monthn<10 ? "0"+monthn:monthn); 
						dayn =(dayn<10 ? "0"+dayn:dayn); 
					nextDate = (yearn.toString()+'-'+monthn.toString()+'-'+dayn.toString());
					document.getElementById("result6").value = nextDate;
					for(var i=0; i<second.length; i++){
						if(second[i].questionId == "906"){
							document.getElementById("forgetmed").value = second[i].answer;
						}
					}
				}
			})
			//赋值
			var resultall = {"r1":['','第一次入户随访','常规随访'],
							"r2":['','门诊','家庭','电话'],
							"r3":['','每日','间歇'],
							"r4":['','固定剂量复合制剂','散装药','板式组合药','注射剂'],
							"r5":['','医生','家属','自服药','其它']}
			var id = 0;
			var manageId = 0;
			var visitId= 0;
			var ehrId = "";
			var tbId ="";//肺结核专档id
			var visitDate = "";
			var visitType = "";
			var visitWay = "";
			var symptom = "";
			var symptomQt = "";
			var chemotherapy = "";
			var medFreq = "";
			var medForm = "";
			var supervisor = "";
			var nextDate = "";
			var doctorId = obj.id;
			var createDate = "";
			var createUserid = obj.id;
			var modifyDate = "";
			var modifyUserid = obj.id;
			var doctorName = obj.userName;
			var doctorHospName = obj.hospName;
			var doctorHospId = obj.hospId;
			mui.init()
			(function($) {
				$.init();
				var result = $('#result')[0];
				var btns = $('.btn');
				btns.each(function(i, btn) {
					btn.addEventListener('tap', function() {
						var _self = this;
						if(_self.picker) {
							_self.picker.show(function (rs) {
								result.innerText = rs.text;
								_self.picker.dispose();
								_self.picker = null;
							});
						} else {
							if(i == 0){
								var optionsJson = this.getAttribute('data-options') || '{}';
								var options = JSON.parse(optionsJson);
								var id = this.getAttribute('id');
								_self.picker = new $.DtPicker(options);
								_self.picker.show(function(rs) {
									$('#result'+i)[0].value = rs.text;
									_self.picker.dispose();
									_self.picker = null;
								});
							}else if(i == 1){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'1',text:'第一次入户随访'},{value:'2',text:' 常规随访'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
								  })
							}else if(i == 2){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'1',text:'门诊'},{value:'2',text:'家庭'},{value:'3',text:'电话'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
								  })
							}else if(i == 3){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'1',text:'每日'},{value:'2',text:'间歇'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
								  })
							}else if(i == 4){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'1',text:'固定剂量复合制剂'},{value:'2',text:'散装药'},{value:'3',text:'板式组合药'},{value:'4',text:'注射剂'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
								  })
							}else if(i == 5){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'1',text:'医生'},{value:'2',text:'家属'},{value:'3',text:'自服药'},{value:'4',text:'其它'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
								  })
							}else if(i == 6){
								var optionsJson = this.getAttribute('data-options') || '{}';
								var options = JSON.parse(optionsJson);
								var id = this.getAttribute('id');
								_self.picker = new $.DtPicker(options);
								_self.picker.show(function(rs) {
									$('#result'+i)[0].value = rs.text;
									_self.picker.dispose();
									_self.picker = null;
								});
							}else{
								var optionsJson = this.getAttribute('data-options') || '{}';
								var options = JSON.parse(optionsJson);
								var id = this.getAttribute('id');
								/*
								 * 首次显示时实例化组件
								 * 示例为了简洁，将 options 放在了按钮的 dom 上
								 * 也可以直接通过代码声明 optinos 用于实例化 DtPicker
								 */
								_self.picker = new $.DtPicker(options);
								_self.picker.show(function(rs) {
									/*
									 * rs.value 拼合后的 value
									 * rs.text 拼合后的 text
									 * rs.y 年，可以通过 rs.y.vaue 和 rs.y.text 获取值和文本
									 * rs.m 月，用法同年
									 * rs.d 日，用法同年
									 * rs.h 时，用法同年
									 * rs.i 分（minutes 的第二个字母），用法同年
									 */
									result.value = rs.text;
									/* 
									 * 返回 false 可以阻止选择框的关闭
									 * return false;
									 */
									/*
									 * 释放组件资源，释放后将将不能再操作组件
									 * 通常情况下，不需要示放组件，new DtPicker(options) 后，可以一直使用。
									 * 当前示例，因为内容较多，如不进行资原释放，在某些设备上会较慢。
									 * 所以每次用完便立即调用 dispose 进行释放，下次用时再创建新实例。
									 */
									_self.picker.dispose();
									_self.picker = null;
								});
							}
						}
						
					}, false);
				});
			})(mui);
			
			
			//开关事件
			mui('.mui-switch')['switch']();
			//切换
			var symptom = "0"
			document.getElementById("mySwitch").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow").style.display="block";
					symptom = "";
				}else{
					document.getElementById("tigshow").style.display="none";
					symptom = "0"
				}
			}) 
			//复选框事件
			mui('.mui-ul-check').on('tap', 'li', function(e) {
				if(!this.getAttribute('class')){
					this.classList.add('on');
					//其它症状描述
					if($("#symptomQt-on").hasClass('on')){
						$("#symptomQt-op").css("display","block");
					}else{
						$("#symptomQt-op").css("display","none");
						$("#symptomQt").val("");
					}
				}else{
					this.classList.remove('on');
					//其它症状描述
					if($("#symptomQt-on").hasClass('on')){
						$("#symptomQt-op").css("display","block");
					}else{
						$("#symptomQt-op").css("display","none");
						$("#symptomQt").val("");
					}
				}
			});
			//切换
			document.getElementById("mySwitch3").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_1").style.display="none";
					document.getElementById("tigshow_doc_2").style.display="block";
					doctorHospId = "0";//签名医生医院id
					document.getElementById("text-hosp").addEventListener('input',function(){
						doctorHospName = document.getElementById("text-hosp").value;//签名医生医院名字
					});
					doctorId = "0";//签名医生id
					document.getElementById("text-doc").addEventListener('input',function(){
						doctorName = document.getElementById("text-doc").value;//签名医生姓名
					});
				}else{
					document.getElementById("tigshow_doc_1").style.display="block";
					document.getElementById("tigshow_doc_2").style.display="none";
					doctorHospId = "";//签名医生医院id
					doctorHospName = "";//签名医生医院名字
					doctorId = "";//签名医生id
					doctorName = "";//签名医生姓名
				}
			})
			function submit(){
				visitDate = $('#result0')[0].value + " 00:00:00";//随访日期
				visitType_1 = $('#result1')[0].value;
				for(var re=0; re<resultall.r1.length; re++){
					if(visitType_1 == resultall.r1[re]){
						visitType = re;
					}
				}
				visitWay_1 = $('#result2')[0].value;
				for(var re=0; re<resultall.r2.length; re++){
					if(visitWay_1 == resultall.r2[re]){
						visitWay = re;
					}
				}
				medFreq_1 = $('#result3')[0].value;
				for(var re=0; re<resultall.r3.length; re++){
					if(medFreq_1 == resultall.r3[re]){
						medFreq = re;
					}
				}
				medForm_1 = $('#result4')[0].value;
				for(var re=0; re<resultall.r4.length; re++){
					if(medForm_1 == resultall.r4[re]){
						medForm = re;
					}
				}
				supervisor_1 = $('#result5')[0].value;
				for(var re=0; re<resultall.r5.length; re++){
					if(supervisor_1 == resultall.r5[re]){
						supervisor = re;
					}
				}
				if($('#result6')[0].value != ""){
					nextDate = $('#result6')[0].value + " 00:00:00";//下次随访日期
				}
				chemotherapy = $("#chemotherapy")[0].value;//化疗方案
				if($("#symptomQt-on").hasClass('on')){//其它症状
					symptomQt = $("#symptomQt")[0].value;
				}else{
					symptomQt = "";
				}
				//复选框
				if($("#mySwitch").hasClass("mui-active")){
					symptom="";
					$ ("#ularry").find ('.on').each (function (){
						symptom += $(this).val() + ",";
					});
					//去掉最后一个逗号(如果不需要去掉，就不用写)
					if (symptom.length > 0) {
						symptom = symptom.substr(0,symptom.length - 1);
					}
				}else{
					symptom="0";
				}
				$.ajax({
					type: 'post',
					url:getRequestUrl.url+"/mobile/ehr/TbVisit/addOrUpdate",
					data:{
							visitId : visitId,
							ehrId : ehrId,
							tbId :tbId,
							visitDate : visitDate,
							visitType : visitType,
							visitWay : visitWay,
							symptom : symptom,
							symptomQt : symptomQt,
							chemotherapy : chemotherapy,
							medFreq : medFreq,
							medForm : medForm,
							supervisor : supervisor,
							nextDate : nextDate,
							doctorId : doctorId,
							createDate : createDate,
							createUserid : createUserid,
							modifyDate : modifyDate,
							modifyUserid : modifyUserid,
							doctorName : doctorName,
							doctorHospName : doctorHospName,
							doctorHospId : doctorHospId
						},
					dataType:"json",
					success : function(data) {
						var rows = data.total;
						var listdata = JSON.stringify(rows);
						console.log(symptom)
							var dataobj=[
								//漏服药次数
								{'id':id,
								'ehrId':ehrId,
								'tbId':tbId,
								"visitId":rows,
								"questionId":"906",
								"answerId":"0",
								"answer":mui("#forgetmed")[0].value,
								"expectedAnswerId":"0",
								"expectedAnswer":null,
								"createDate":createDate,
								"modifyDate":modifyDate,
								"createUserid":createUserid,
								"modifyUserid":modifyUserid}
									]
							JSON.stringify(dataobj)
						console.log(listdata)
						if(data.status==1){
							//alert("提交成功")
							$.ajax({
								type: 'post',
								url:getRequestUrl.url+"/mobile/ehr/TbVisitAddition/addOrUpdate",
								data:JSON.stringify(dataobj),
								dataType:"json",
								contentType : 'application/json;charset=utf-8',
								success : function(data) {
									if(data.status==1){
										alert("提交成功")
										var view=plus.webview.getWebviewById("follow_up_add");//上个页面的ID
										mui.fire(view,'doit',{
										    inputVal:rows
										});
										mui.back()
									}else{
										alert(data.message);
									}
								},
								error:function(xhr,type,errorThrown){
									
								}
							})
						}else{
							alert(data.message);
						}
					},
					error:function(xhr,type,errorThrown){
						
					}
				})
			}
		</script>
	</body>

</html>